﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using iBeauty.App.Helper;

namespace iBeauty.App
{
    public partial class frmSearch : XtraForm
    {
        public event EventHandler SearchEvent;

        public frmSearch()
        {
            InitializeComponent();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void btnSearch_Click(object sender, EventArgs e)
        {
            if (SearchEvent != null)
            {
                var searchEventArgs =new SearchEventArgs();
                SearchEvent(this, searchEventArgs);
            }

            Close();
        }
    }
}